import request from '@/utils/request'

// 查询直播频道分类列表
export function listLiveType(query) {
  return request({
    url: '/live-type/list/',
    method: 'get',
    params: query
  })
}

// 查询直播频道分类详细
export function getLiveType(typeId) {
  return request({
    url: '/live-type/' + typeId,
    method: 'get'
  })
}

// 新增直播频道分类
export function addLiveType(data) {
  return request({
    url: '/live-type',
    method: 'post',
    data: data
  })
}

// 修改直播频道分类
export function updateLiveType(data) {
  return request({
    url: '/live-type',
    method: 'put',
    data: data
  })
}

// 删除直播频道分类
export function delLiveType(typeId) {
  return request({
    url: '/live-type/' + typeId,
    method: 'delete'
  })
}
